import { IsNotEmpty, IsOptional, MaxLength } from 'class-validator'
import i18n, { i18nMessage } from '@/i18n'
import { ApiProperty } from '@nestjs/swagger'

export class MetaPlatformGetBindDataSourceTypeDto {
  @ApiProperty({ description: i18n.t('app-meta.dto.meta-platform-get-bind-data-source-type.12151174-0') })
  @IsNotEmpty()
  @MaxLength(64, { message: i18nMessage() })
  platform: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-platform-get-bind-data-source-type.12151174-1') })
  @MaxLength(64, { message: i18nMessage() })
  @IsOptional()
  project?: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-platform-get-bind-data-source-type.12151174-2') })
  @IsNotEmpty()
  token: string

  @ApiProperty({ description: i18n.t('app-meta.dto.meta-platform-get-bind-data-source-type.12151174-3') })
  @IsNotEmpty()
  path: string
}
